package com.service.lyxmserviceapi.model;

import java.io.Serializable;
import java.util.List;

public class ArticleModel implements Serializable{
	private static final long serialVersionUID = -5571368168560643392L;
	private Integer id;						//文章id
	private String title;					//文章标题8
	private String context;					//文章内容
	private String createTimeStr;			//创建时间
	private Author author;					//作者
	private Integer readNum;				//阅读量
	private Mp mp;							//音乐内容
	private Module module;					//文章模块
	private String mounth;					//英文月份
	private String day;						//日子
	private String description;				//文章描述
	private String target;					//文章标签,分割
	private List<String> targetList;		//标签list
	private String coverFileSrc;			//封面图片路径
	private String coverFileSrcS;			//封面图片路径
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public String getCreateTimeStr() {
		return createTimeStr;
	}
	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}
	public Author getAuthor() {
		return author;
	}
	public void setAuthor(Author author) {
		this.author = author;
	}
	public Integer getReadNum() {
		return readNum;
	}
	public void setReadNum(Integer readNum) {
		this.readNum = readNum;
	}
	public Mp getMp() {
		return mp;
	}
	public void setMp(Mp mp) {
		this.mp = mp;
	}
	public Module getModule() {
		return module;
	}
	public void setModule(Module module) {
		this.module = module;
	}
	public String getMounth(){
		if(this.getCreateTimeStr()!=""&&this.getCreateTimeStr()!=null){
			String mounth = this.getCreateTimeStr().toString().split("-")[1];
			if(mounth.equals("01")){
				return "January";
			}else if(mounth.equals("02")){
				return "February";
			}else if(mounth.equals("03")){
				return "March";
			}else if(mounth.equals("04")){
				return "April";
			}else if(mounth.equals("05")){
				return "May";
			}else if(mounth.equals("06")){
				return "June";
			}else if(mounth.equals("07")){
				return "July";
			}else if(mounth.equals("08")){
				return "August";
			}else if(mounth.equals("09")){
				return "September";
			}else if(mounth.equals("10")){
				return "October";
			}else if(mounth.equals("11")){
				return "November";
			}else if(mounth.equals("12")){
				return "December";
			}else{
				return "";
			}
		}
		return "";
	}
	public String getDay(){
		if(this.getCreateTimeStr()!=""&&this.getCreateTimeStr()!=null){
			String day = this.getCreateTimeStr().toString().split("-")[2];
			return day;
		}
		return "";
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public List<String> getTargetList() {
		return targetList;
	}
	public void setTargetList(List<String> targetList) {
		this.targetList = targetList;
	}
	public String getCoverFileSrc() {
		return coverFileSrc;
	}
	public void setCoverFileSrc(String coverFileSrc) {
		this.coverFileSrc = coverFileSrc;
	}
	public String getCoverFileSrcS() {
		return coverFileSrcS;
	}
	public void setCoverFileSrcS(String coverFileSrcS) {
		this.coverFileSrcS = coverFileSrcS;
	}
	
}
